package cn.wolfcode.web.feign;

import cn.wolfcode.common.web.Result;
import cn.wolfcode.domain.PayVo;
import cn.wolfcode.domain.RefundVo;
import cn.wolfcode.web.feign.fallback.PayFeginFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(value = "pay-service",fallback = PayFeginFallback.class)
public interface PayFeginApi {
    @RequestMapping("/alipay/pay")
    Result<String> pay(@RequestBody PayVo vo);
    @RequestMapping("/alipay/rsaCheckVl")
    Result<Boolean> rsaCheckVl(@RequestParam Map<String, String> params);
    @RequestMapping("/alipay/refund")
    Result<Boolean> refund(@RequestBody RefundVo refundVo);
}
